import request from '@/utils/request'

// 查询购买车辆列表
export function listPurchasevehicle(query) {
  return request({
    url: '/purchasevehicle/purchasevehicle/list',
    method: 'get',
    params: query
  })
}

// 查询购买车辆详细
export function getPurchasevehicle(vehicleid) {
  return request({
    url: '/purchasevehicle/purchasevehicle/' + vehicleid,
    method: 'get'
  })
}

// 新增购买车辆
export function addPurchasevehicle(data) {
  return request({
    url: '/purchasevehicle/purchasevehicle',
    method: 'post',
    data: data
  })
}

// 修改购买车辆
export function updatePurchasevehicle(data) {
  return request({
    url: '/purchasevehicle/purchasevehicle',
    method: 'put',
    data: data
  })
}

// 删除购买车辆
export function delPurchasevehicle(vehicleid) {
  return request({
    url: '/purchasevehicle/purchasevehicle/' + vehicleid,
    method: 'delete'
  })
}
